<div>
    <div class="ibox ">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="查询条件"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">

            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <input type="text" :placeholder="vc.i18n('请选择业主名称','ownerInvoice')"
                            v-model="ownerInvoiceInfo.conditions.ownerName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <select class="custom-select" v-model="ownerInvoiceInfo.conditions.invoiceType">
                        <option selected value="">
                            请选择发票类型
                        </option>
                        <option value="1001">个人</option>
                        <option value="2002">企业</option>
                    </select>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <input type="text" :placeholder="vc.i18n('请选择发票名头','ownerInvoice')"
                            v-model="ownerInvoiceInfo.conditions.invoiceName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-1">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryOwnerInvoiceMethod()">
                        <vc:i18n name="查询"></vc:i18n>
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="发票抬头" namespace="ownerInvoice"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddOwnerInvoiceModal()">
                    <vc:i18n name="添加" namespace="ownerInvoice"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">
                            <vc:i18n name='编号' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='业主名称' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='发票类型' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='发票名头' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='纳税人识别号' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='地址' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='电话' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='开户行及账号' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='备注' namespace='ownerInvoice'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='操作'></vc:i18n>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="ownerInvoice in ownerInvoiceInfo.ownerInvoices">
                        <td class="text-center">{{ownerInvoice.oiId}}</td>
                        <td class="text-center">{{ownerInvoice.ownerName}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceType == '1001'?'个人':'公司'}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceName}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceNum}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceAddress}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceLink}}</td>
                        <td class="text-center">{{ownerInvoice.invoiceAccount}}</td>
                        <td class="text-center">{{ownerInvoice.remark}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditOwnerInvoiceModel(ownerInvoice)">
                                    <vc:i18n name='修改'></vc:i18n>
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteOwnerInvoiceModel(ownerInvoice)">
                                    <vc:i18n name='删除'></vc:i18n>
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>
    </div>

    <vc:create path="fee/editOwnerInvoice"></vc:create>
    <vc:create path="fee/deleteOwnerInvoice"></vc:create>

</div>